<template>
  <div class="recomTicket">
    <div class="title">
      <i class="iconfont icon-xiangzuo" @click="$router.go(-1),change()"></i>
      <div class="story">推荐票</div>
    </div>

    <div class="retiContent">
      <div class="headRT">
        <div class="hbox">
          <h1>1<span>张剩余</span></h1>
          <p>每日24点清零</p>
        </div>
      </div>
      <div class="resTiCon">
        <div class="tiCon">今日获赠记录（共1张）</div>

        <div class="contIpt">
          <div class="item">
            <div class="itemCon">
              <i class="iconfont icon-xuanzhong" v-show="beanTicket"></i>
              <i class="iconfont icon-weixuanzhong" v-show="rebeanTicket"></i>

              <p>评价成功（且审核通过）</p>
            </div>
            <p>1张/日</p>
          </div>
          <div class="item">
            <div class="itemCon">
              <i class="iconfont icon-xuanzhong" v-show="beanTicket2"></i>
              <i class="iconfont icon-weixuanzhong" v-show="rebeanTicket2"></i>
              <p>分享成功</p>
            </div>
            <p>1张/日</p>
          </div>
          <div class="item">
            <div class="itemCon">
              <i class="iconfont icon-xuanzhong" v-show="beanTicket3"></i>
              <i class="iconfont icon-weixuanzhong" v-show="rebeanTicket3"></i>
              <p>打开橙子app（联网）</p>
            </div>
            <p>1张/日</p>
          </div>
          <div class="item">
            <div class="itemCon">
              <i class="iconfont icon-xuanzhong" v-show="beanTicket4"></i>
              <i class="iconfont icon-weixuanzhong" v-show="rebeanTicket4"></i>
              <p>阅读超过10章节</p>
            </div>
            <p>1张/日</p>
          </div>
        </div>
      </div>
      <div class="textRC">快给喜爱的书籍投票冲榜吧</div>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      beanTicket: false,
      beanTicket2: false,
      beanTicket3: false,
      beanTicket4: false,
      rebeanTicket: true,
      rebeanTicket2: true,
      rebeanTicket3: true,
      rebeanTicket4: true,
    };
  },
  methods: {
    change() {
      this.$emit("getnavs-btn", true);
    },
  },
  created() {
    this.$emit("getnavs-btn", false);
    this.beanTicket3 = true;
    this.rebeanTicket3 = false;
  },
};
</script>

<style lang="less">
.recomTicket {
  width: 100%;
  height: 100%;
  .title {
    position: fixed;
    width: 100%;
    min-height: 50px;
    display: flex;
    background-color: #fff;
    z-index: 1;
    i {
      flex: 0 0 40px;
      text-align: center;
      line-height: 50px;
      font-size: 20px;
    }
    .story {
      flex: 1;
      text-align: center;
      line-height: 50px;
      font-size: 18px;
      padding-right: 40px;
    }
  }
  .retiContent {
    width: 100%;
    height: 100vh;
    background-color: #f6f7f9;
    .headRT {
      width: 100%;
      height: 25%;
      background-color: #fff;
      .hbox {
        margin: auto;
        text-align: center;
        padding-top: 80px;
        h1 {
          font-size: 50px;
          span {
            font-size: 16px;
          }
        }
        p {
          margin-top: 6px;
          color: #999;
          font-size: 14px;
        }
      }
    }
    .resTiCon {
      margin-top: 10px;
      padding: 20px;
      background-color: #fff;
      .tiCon {
        text-align: center;
        font-size: 14px;
      }
      .contIpt {
        padding-top: 8px;
        .item {
          display: flex;
          justify-content: space-between;
          padding: 6px 15px;
          font-size: 14px;
          .itemCon {
            display: flex;
            align-items: baseline;
            .critle {
              width: 16px;
              height: 16px;
              border-radius: 50%;
              border: 1px solid rgb(35, 179, 130);
            }
            i {
              font-size: 20px;
              margin-right: 4px;
              color: rgb(35, 179, 130);
            }
          }
          p {
            font-size: 14px;
            color: #323233;
          }
        }
      }
    }
    .textRC {
      width: 100%;
      text-align: center;
      font-size: 12px;
      color: #999;
      padding-top: 15px;
    }
  }
}
</style>